﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Cstudy.BLL
{
    public class link
    {
        /// <summary>
        /// 添加连接
        /// </summary>
        /// <param name="link"></param>
        /// <returns></returns>
        public bool AddLink(Cstudy.MODEL.link link)
        {
            return new DAL.link().AddLink(link);
        }
        /// <summary>
        /// 删除链接
        /// </summary>
        /// <param name="link_id">链接ID</param>
        /// <returns></returns>
        public bool DeleteLink(int link_id)
        {
            return new DAL.link().DeleteLink(link_id);
        }
        /// <summary>
        /// 修改链接
        /// </summary>
        /// <param name="link">链接实体</param>
        /// <returns></returns>
        public bool UpdateLink(Cstudy.MODEL.link link)
        {
            return new DAL.link().UpdateLink(link);
        }
        /// <summary>
        /// 查询所有链接
        /// </summary>
        /// <returns></returns>
        public DataSet SelectLink()
        {
            return new DAL.link().SelectLink();
        }
        /// <summary>
        /// 查询单条链接
        /// </summary>
        /// <param name="link_id">链接ID</param>
        /// <returns></returns>
        public DataSet SelectLinkByID(int link_id)
        {
            return new DAL.link().SelectLinkByID(link_id);
        }
    }
}
